<template>
    <el-menu router background-color="#2A3F54" text-color="#fff">
      <h1 class="aside-title">科泰头条系统</h1>
      <el-row class="aside-user">
        <el-col :span="10" :offset="2">
          <el-avatar :size="60"
            src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png">
          </el-avatar>
        </el-col>
        <el-col :span="12">
          <h3>管理员</h3>
          <h3>admin</h3>
        </el-col>
      </el-row>
      <el-submenu index="1">
        <template slot="title">
          <i class="el-icon-user"></i>
          <span>会员管理</span>
        </template>
        <el-menu-item index="/user/list">
          <i class="el-icon-user-solid"></i>
          会员列表
        </el-menu-item>
      </el-submenu>
      <el-submenu index="2">
        <template slot="title">
          <i class="el-icon-s-management"></i>
          <span>新闻分类管理</span>
        </template>
        <el-menu-item index="/news-type/list">
          分类列表
        </el-menu-item>
      </el-submenu>
      <el-submenu index="3">
        <template slot="title">
          <i class="el-icon-news"></i>
          <span>新闻管理</span>
        </template>
        <el-menu-item index="/news/list">
          新闻列表
        </el-menu-item>
      </el-submenu>
      <el-submenu index="4">
        <template slot="title">
          <i class="el-icon-setting"></i>
          <span>系统管理</span>
        </template>
        <el-menu-item index="/changepwd">
          修改密码
        </el-menu-item>
      </el-submenu>
    </el-menu>
  </template>
  
  <script>
  export default {
    name: "LeftMenu"
  };
  </script>
  
  <style>
  .el-submenu__title {
    text-align: left;
  }
  .aside-title {
    color: #fff;
    font-size: 25px;
    text-align: center;
  }
  .aside-user h3 {
    margin: 5px;
  }
</style>